// src/routes/launches/launches.router.js
const express = require('express');
const {
httpGetAllLaunches,
httpAddNewLaunch,
httpAbortLaunch,
} = require('./launches.controller');
const launchesRouter = express.Router();
launchesRouter.get('/', httpGetAllLaunches);
launchesRouter.post('/', httpAddNewLaunch);
// 为 launchesRouter 路由器实例添加 DELETE 请求处理⽅法
launchesRouter.delete('/:id', httpAbortLaunch);
module.exports = launchesRouter;